package bancosys.tec.services.test.services;

import jmine.tec.services.annotations.Execution;
import jmine.tec.services.annotations.Parameter;
import jmine.tec.services.annotations.ServiceImplementor;
import jmine.tec.services.api.ActionsEnum;
import jmine.tec.services.api.ServiceExecutionException;
import bancosys.tec.utils.date.Date;

@ServiceImplementor(action = ActionsEnum.VALIDAR)
public class RecuperarReferenciaTestService {
    @Execution
    public final void execute(@Parameter(InserirReferenciaTestService.REFERENCIA) Date data) throws ServiceExecutionException {
        if (!data.equals(InserirReferenciaTestService.DATA_PADRAO)) {
            throw new ServiceExecutionException(new RuntimeException());
        }
    }
}
